<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:productcategory:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增分类</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div class="modal fade" id="myProductModal" tabindex="-1" role="dialog" aria-labelledby="myProductModalLabel">
        <div class="modal-dialog" role="document">
            <form class="form-horizontal">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myProductModalLabel">新增商品分类</h4>
                    </div>
                    <div class="modal-body">

                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span style="color: red">*</span>分类名称</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="productcategory.name" placeholder="分类名称">
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" id="btn_submit" class="btn btn-primary" data-dismiss="modal" @click="saveOrUpdate">确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/productcategory.js?_${.now?long}"></script>
</body>
</html>